package com.youlg.pojo;

public class Admin {
    private String admin_name;
    private String admin_password;
    private String admin_uuid;

    public Admin(String admin_name, String admin_password, String admin_uuid) {
        this.admin_name = admin_name;
        this.admin_password = admin_password;
        this.admin_uuid = admin_uuid;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "admin_name='" + admin_name + '\'' +
                ", admin_password='" + admin_password + '\'' +
                ", admin_uuid='" + admin_uuid + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Admin admin = (Admin) o;

        if (admin_name != null ? !admin_name.equals(admin.admin_name) : admin.admin_name != null) return false;
        if (admin_password != null ? !admin_password.equals(admin.admin_password) : admin.admin_password != null)
            return false;
        return admin_uuid != null ? admin_uuid.equals(admin.admin_uuid) : admin.admin_uuid == null;
    }

    @Override
    public int hashCode() {
        int result = admin_name != null ? admin_name.hashCode() : 0;
        result = 31 * result + (admin_password != null ? admin_password.hashCode() : 0);
        result = 31 * result + (admin_uuid != null ? admin_uuid.hashCode() : 0);
        return result;
    }

    public String getAdmin_name() {

        return admin_name;
    }

    public void setAdmin_name(String admin_name) {
        this.admin_name = admin_name;
    }

    public String getAdmin_password() {
        return admin_password;
    }

    public void setAdmin_password(String admin_password) {
        this.admin_password = admin_password;
    }

    public String getAdmin_uuid() {
        return admin_uuid;
    }

    public void setAdmin_uuid(String admin_uuid) {
        this.admin_uuid = admin_uuid;
    }

    public Admin() {

    }
}
